import {createPinia, storeToRefs} from 'pinia'
import persistedState from 'pinia-plugin-persistedstate'

const store = createPinia()
store.use(persistedState)

export * from './modules/skin'
export * from './modules/tab'
export * from './modules/operator'
export * from './modules/acl'
export * from './modules/dict'
export const installStore = (app: any) => app.use(store)
export {store, storeToRefs}
